import request from '@/utils/request'

export function smsChannelTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/channel/table`,
    method: 'post',
    data: query
  })
}

export function smsChannelLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/channel/load`,
    method: 'get',
    params: query
  })
}

export function smsChannelSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/channel/save`,
    method: 'post',
    data: query
  })
}

export function smsChannelDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/channel/delete`,
    method: 'post',
    data: query
  })
}

export function smsTemplateTable(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/template/table`,
    method: 'post',
    data: query
  })
}

export function smsTemplateLoad(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/template/load`,
    method: 'get',
    params: query
  })
}

export function smsTemplateSave(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/template/save`,
    method: 'post',
    data: query
  })
}

export function smsTemplateDelete(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/template/delete`,
    method: 'post',
    data: query
  })
}

export function smsSend(query) {
  return request({
    url: `${process.env.VUE_APP_MODULE_ADMIN_API}/api/sms/template/send`,
    method: 'post',
    data: query
  })
}
